<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <link href="<s:url value='../css/style.css'/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.filmes"/></title>
    <style>
		body {	
			background-color: #e8eefa;
			font-family: Verdana;	
			font-size: 11px;	
			line-height: 1em;	
			color: #000000;
		}
    	td {
    		white-space:nowrap;
    	}
    </style>
<script language="javascript" type="text/javascript">
function deletaUsuarioAdmin(url){
	if (confirm('Você confirma a exclusão do Usuário Administrador?')) {
		document.location.href = url;
	}
}
</script>
</head>
<body>

<center>
<s:form action="#" name="usuarios" method="post">
<table width="400" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td width="15" height="16" align="right"><img src="../images/box-form-top-left.gif"></td>
	<td height="16" align="right" background="../images/box-form-up.gif" style="background-repeat: repeat-x"></td>
	<td width="15" height="16" align="left"><img src="../images/box-form-top-right.gif"></td>
</tr>
<tr>
	<td width="15" align="right" background="../images/box-form-middle-left.gif" style="background-repeat: repeat-y"></td>
	<td style="background-color: #f6f8f7;" align="center">
		<table width="100%" cellpadding="1" cellspacing="0" border="0">
		<tr>
			<td colspan="2"><img src="../images/titulo-form-admin-consultar.gif"></td>
		</tr>
		<tr>
			<td align="center"><br />
				<table width="90%" class="borderAll" cellpadding="2" cellspacing="0" border="0">
			    <tr>
			        <td bgcolor="#6888cb" style="color: #FFFFFF"><b><s:text name="label.operadores.consulta.nome"/></b></td>
			        <td bgcolor="#6888cb" style="color: #FFFFFF"><b><s:text name="label.operadores.consulta.cargo"/></b></td>
			        <td bgcolor="#6888cb" style="color: #FFFFFF"><b><s:text name="label.operadores.consulta.setor"/></b></td>
			        <td bgcolor="#6888cb" style="color: #FFFFFF"><b><s:text name="label.operadores.consulta.dataCadastro"/></b></td>
			        <td bgcolor="#6888cb" colspan="3" style="color: #FFFFFF" align="center"><b>Ações</b></td>
			    </tr>
			    <s:iterator value="usuarios" status="status">
			        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
			            <td class="nowrap"><s:property value="nmUsuario"/></td>
			            <td class="nowrap"><s:property value="cargoContato1"/></td>
			            <td class="nowrap"><s:property value="setorContato1"/></td>
			            <td class="nowrap" align="center"><s:property value="dtCadastro"/>
			            <td class="nowrap" align="center">
			                <s:url action="crudUsu_editOperador" id="url">
			                    <s:param name="usuario.cdUsuario" value="cdUsuario"/>
			                </s:url>
			                <a href="<s:property value="#url"/>"><img src="../images/icone-visualizar.gif" style="cursor: pointer;" border="0" /></a>
			                &nbsp;&nbsp;&nbsp;
			                <s:url action="crudUsu_deleteAdmin" id="url">
			                    <s:param name="usuario.cdUsuario" value="cdUsuario"/>
			                </s:url>
			                <a href="#" onclick="deletaUsuarioAdmin('<s:property value="#url"/>');"><img src="../images/icone-deletar.gif" style="cursor: pointer;" border="0" /></a>
			            </td>
			            <s:set name="statusUsu" value="statusUsuario.label"/>
			            <s:url action="crudUsu_mudarStatus" id="url">
		                    <s:param name="usuario.cdUsuario" value="cdUsuario"/>
		                </s:url>
			        </tr>
			    </s:iterator>
			    </table>
   			</td>
		</tr>
		<tr>
			<td colspan="2" align="center"><br />
			    <!-- BOTÕES -->
			    <table width="160" cellpadding="3" cellspacing="0" border="0">
			    <tr>
			    	<td colspan="2" align="center"><img src="../images/button-separator.gif" style="cursor: pointer;" /></td>
			    </tr>
			    <tr>
			    	<td width="80" align="center"><img src="../images/botao-nova.gif" style="cursor: pointer;" onclick="novaCategoria();" border="0"/></td>
			    	<td width="80" align="center"><a href="../principal.jsp"><img src="../images/botao-voltar.gif" style="cursor: pointer;" border="0" /></a></td>
			    </tr>
			    </table>
			</td>
		</tr>
		</table>
	</td>
	<td width="15" align="left" background="../images/box-form-middle-right.gif" style="background-repeat: repeat-y"></td>
</tr>
<tr>
	<td width="15" height="16" align="right"><img src="../images/box-form-bottom-left.gif"></td>
	<td height="16" align="left" background="../images/box-form-bottom.gif" style="background-repeat: repeat-x"></td>
	<td width="15" height="16" align="left"><img src="../images/box-form-bottom-right.gif"></td>
</tr>
</table>

</s:form>
</center>

</body>
</html>